<template>
  <div class="complete">
    <van-nav-bar title="支付完成" left-arrow  @click="toHome()"/>
    <div class="complete-icon">
      <img src="./images/complete.png" />
      <p>订单提交成功</p>
    </div>
    <div class="order">
        订单号
        <span class="ordernum">
            45234122375475462
        </span>
    </div>
    <router-link to="/home"></router-link>
    <button class="complete-btn" @click="toHome()">
        完成
    </button>
  </div>
</template>

<script>
let num=new Date().toLocaleDateString()
export default {
    methods:{
        toHome(){
            this.$router.push("/home")
        }
    }
};
</script>

<style scoped lang="less">
.complete {
  .complete-icon {
    img {
      width: 2rem;
    }
    margin-top: 1rem;
    text-align: center;
  }
  .order{
      padding: 0 .4rem;
      height: .7rem;
      line-height: .7rem;
      background-color: #f9f9f9;
      color: #a4a4a4;
      font-size: .26rem;
      width: 90%;
      margin-left: 5%;
      display: inline-block;
      box-sizing: border-box;
      .ordernum{
          float: right;
      }
  }
  .complete-btn{
      display: inline-block;
      width: 90%;
      margin-left: 5%;
      height: .7rem;
      color: #fff;
      background-color: #f15759;
      border: none;
      outline: unset;
      margin-top: .7rem;
  }
}
</style>